package world.xuewei.model.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer", "fieldHandler"})
/**
 * 商品表(Commodity)实体类
 *
 * @author makejava
 * @since 2024-11-16 15:40:06
 */
public class Commodity implements Serializable {
    private static final long serialVersionUID = 586017517284016451L;
    /**
     * 商品ID
     */
    private Long id;
    /**
     * 商户ID
     */
    private Long merchantId;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品简介
     */
    private String info;
    /**
     * 商品描述
     */
    private String description;
    /**
     * 商品分类ID
     */
    private Long classifyId;
    /**
     * 原价
     */
    private BigDecimal originalPrice;
    /**
     * 现价
     */
    private BigDecimal nowPrice;
    /**
     * 库存
     */
    private Integer inventory;
    /**
     * 上架时间
     */
    private Date publishTime;
    /**
     * 状态：0-下架 1-上架
     */
    private Integer status;
    /**
     * 商品图片地址
     */
    private String img;
    /**
     * 销量
     */
    private Integer saleCount;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;


}

